class Rect:
    def __init__(self,width,heigth):
        self.width = width
        self.height = heigth
    @property
    def area(self):
        return self.width*self.height
    

rect=Rect(30,40)
print('面积为:',rect.area)